package com.zbkj.service.model.front.vo.spread;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel
public class SpreadWeekRecordVO {

    @ApiModelProperty("奖励金")
    private WeekRecord rewardAmount;

    @ApiModelProperty("推新数")
    private WeekRecord recommendCount;

    @ApiModelProperty("订单数")
    private WeekRecord orderCount;

    @ApiModelProperty("订单金额")
    private WeekRecord orderAmount;

    @Data
    @ApiModel
    public static class WeekRecord {
        @ApiModelProperty("数值")
        private String number;

        @ApiModelProperty("排名")
        private Integer ranking;
    }

    public static WeekRecord generate(String number, Integer ranking) {
        WeekRecord weekRecord = new WeekRecord();
        weekRecord.setNumber(number);
        weekRecord.setRanking(ranking);
        return weekRecord;
    }
}
